lib_path = File.expand_path(File.dirname(__FILE__) + "/../lib")
$LOAD_PATH.unshift(lib_path)

require 'rubygems'
require 'test/unit'

{'net/ssh'		=> "net-ssh", 
 'json/pure'	=> "json_pure",
 'mysql'			=> "ruby-mysql",
}.each do |inc, pkg|
	begin
		require inc
	rescue LoadError
		if RUBY_PLATFORM.match(/win32/)
			puts "Missing gem #{pkg}, please install and try again"
			exit
		else
			puts `sudo gem install #{pkg}`
			require inc
		end
	end
end

require 'uranium/loggerwrapper'
require 'uranium/utils'
require 'uranium/hash'
